/*
 * BanBu_DialogueController
 * @description 本文件提供对话和来访记录的viewcontroller
 * @package
 * @author 		***
 * @copyright
 * @version 		1.0
 * @description 本文件提供对话和来访记录的viewcontroller
 */
#import <UIKit/UIKit.h>
#import "AppDataManager.h"
#import "BanBu_AppDelegate.h"
#import "AKSegmentedControl.h"
#import "UIBadgeView.h"

@class BanBu_NavButton;
@class SVSegmentedControl;


#pragma mark -
#pragma mark 全局"对话"界面

@interface BanBu_DialogueController : UIViewController <AppDataManagerDelegate,UIAlertViewDelegate,UITableViewDataSource,UITableViewDelegate,AKSegmentedControlDelegate>
{
    UILabel *lab;
    BanBu_NavButton *deleteButton;
    BOOL _isPush;                   //防止页面卡住时，多次点击该cell，会push多个viewcontroller
    AKSegmentedControl *segmentController;
    UIImageView *friendOnline;
    UIImageView *followOnline;
    NSInteger selectIndex;
}

@property (retain, nonatomic) UITableView * tableView;           //对话列表
@property (nonatomic, assign) NSInteger totalUnreadNum;          //未读消息数量
@property (assign, nonatomic) BOOL showTalkView;                 //YES：显示对话列表；NO：显示来访记录
//更新全局对话数量及气泡数字
- (void)updateBadgeShow;

@property (retain, nonatomic) UIView * moreView;
@property (retain, nonatomic) UIActivityIndicatorView * activeInditor;
@property (retain, nonatomic) NSMutableArray * aCacheArray;       //缓存、预读取的用户
@property (assign, nonatomic) BOOL isLoading;
@property (assign, nonatomic) BOOL alreadyRefresh;


@property (retain, nonatomic) NSMutableDictionary * existUserIDDic;//已加载显示到table上的用户


@property (retain, nonatomic) NSMutableDictionary * deletDic;    //存放将要删除的用户信息字典

@property (assign, nonatomic) BOOL noData;//没有对话了，加载到最后一个了

@property (assign, nonatomic) BOOL sliding;//滑动删除为YES；点击多选删除为NO
@property (assign, nonatomic) BOOL slided;//滑动删除为YES；点击多选删除为NO

@property (retain, nonatomic) UIBadgeView * badgeViewTalk;      //导航栏对话气泡

@property (retain, nonatomic) UIImageView * redImage;//有新消息时提示

@end
